<template>
  <div class="page-course">
    <home v-if="!isShowClass"></home>
    <class v-else></class>
  </div>
</template>

<script>
import Class from './class/index'
import Home from './home/index'
import { mapState } from 'vuex'

export default {
  data () {
    return {}
  },
  computed: mapState({
    isShowClass: store => store.course.isShowClass
  }),
  mounted () {},
  components: {
    Class,
    Home
  },
  methods: {}
}
</script>

<style lang="less"></style>
